<?php
    $data = $this -> supplement;
    if($data["supplement_type"]<10){
        $title = $this->translate("onlineSupplementInfor");
        $delete = "deleteOnline";
        $url = "online";
    }else{
        $title = $this->translate("offlineSupplementInfor");
        $delete = "deleteOffline";
        $url = "offline";
    }
?>

<div class='center_form'>
    <div class="center_form_right">      
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/trade/supplement/<?php echo $url;?>");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("returnBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title"><?php echo $title; ?></span></div>
      <div class="right_form_content">

               <div class="form_content">
                        <table cellspacing="0" cellpadding="0" border="0" class="order_table">
				            <tr>
				                <td class="table_header"><?php echo $this->translate("sn"); ?></td>
				                <td><?php echo $data["sn"]; ?></td>
				                <td class="table_header"><?php echo $this->translate("trade_num"); ?></td>
				                <td><?php echo $data['trade_num']; ?></td>
				            </tr>
				            <tr>
				                <td class="table_header"><?php echo $this->translate("user_id"); ?></td>
				                <td><?php echo $data['uname']; ?></td>
				                <td class="table_header"><?php echo $this->translate("trade_sum"); ?></td>
				                <td><?php echo $data['trade_sum']; ?></td>
				            </tr>
				            <tr>
                                <td class="table_header"><?php echo $this->translate("status"); ?></td>
                                <td><?php echo TradeConstant::getStatus($data['status']); ?></td>                            
				                <td class="table_header"><?php echo $this->translate("off_supplement_type"); ?></td>
				                <td><?php echo TradeConstant::getType($data['supplement_type']); ?></td>
				            </tr>
				            <tr>
                                <td class="table_header"><?php echo $this->translate("out_id"); ?></td>
                                <td><?php echo $data['out_id']; ?></td>                            
				                <td class="table_header"><?php echo $this->translate("out_name"); ?></td>
				                <td><?php echo $data['out_name']; ?></td>
				            </tr>
				            <tr>
                                <td class="table_header"><?php echo $this->translate("out_date"); ?></td>
                                <td><?php echo $data['out_date']; ?></td>                           
				                <td class="table_header"><?php echo $this->translate("in_id"); ?></td>
				                <td><?php echo $data['in_id']; ?></td>
				            </tr>
                            <tr>
                                <td class="table_header"><?php echo $this->translate("balance_now"); ?></td>
                                <td><?php echo $data['balance_now']; ?></td>
                                <td class="table_header">&nbsp;</td>
                                <td>&nbsp;</td>                                
                            </tr>                            
				            <?php
				                if($data['status']==7){
				            ?>
				                <tr>
				                    <td class="table_header"><?php echo $this->translate("desctiption"); ?></td>
				                    <td colspan="3"><?php echo $data['description']; ?></td>
				                </tr>
				            <?php
				                }
				            ?>                            
                        </table>
               </div>
 
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>